import Vue from 'vue';
import { Button } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Col, Row } from 'vant';
import { NoticeBar } from 'vant';
import { Divider } from 'vant';
import { Toast } from 'vant';
import { Empty } from 'vant';
import { Tab, Tabs } from 'vant';
import { Form } from 'vant';
import { Field } from "vant";
import { Uploader } from 'vant';
import { Popup } from 'vant';
import { IndexBar, IndexAnchor } from 'vant';
import { Cell } from "vant";
import { Popover } from "vant";
import { List } from 'vant';
import { PullRefresh } from 'vant';
import { Loading } from 'vant';
import { CouponCell, CouponList } from 'vant';
import { Dialog } from "vant";
import { Badge } from 'vant';
import { ActionSheet } from 'vant';
import { CellGroup } from 'vant';

import "vant/lib/index.css"


Vue.use(Button);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Col);
Vue.use(Row);
Vue.use(NoticeBar);
Vue.use(Divider);
Vue.use(Empty);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Form);
Vue.use(Field);
Vue.use(Uploader);
Vue.use(Popup);
Vue.use(IndexBar);
Vue.use(IndexAnchor);
Vue.use(Cell);
Vue.use(Popover);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Loading);
Vue.use(CouponCell);
Vue.use(CouponList);
Vue.use(Badge);
Vue.use(ActionSheet);
Vue.use(CellGroup);
Vue.use(Dialog)

Toast.setDefaultOptions('loading', { forbidClick: true ,overlay:true,duration:0});// 配置loding
Vue.prototype.$message = Toast;
Vue.prototype.$dialog = Dialog;